﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace K9MPro.UserInterface
{
    public partial class frmLogin : Form
    {
        public frmLogin()
        {
            InitializeComponent();
        }

        private void lnklblPassword_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            string pwdReminder = string.Empty;

            // write code to get the users password reminder based on user name
            if (this.txtLoginName.Text.Length != 0)
            {
                // code to actually get the password reminder
                pwdReminder = "Your password reminder is: whats up doc";
            }
            else { pwdReminder = "Please enter your login name"; }

            // open a message box and display the password reminder setup at startup
            MessageBox.Show(pwdReminder); 
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            // code to validate the user and let them in baby!!
            this.Close();
        }

        private void frmLogin_Load(object sender, EventArgs e)
        {
            this.lblSoftwareVersion.Text = "K9 Manager Pro Version: " + Application.ProductVersion.ToString();
            this.txtLoginName.Focus();
        }
    }
}
